package moodish.ui;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

public class Mood extends JPanel {

	private static final long serialVersionUID = 1L;

	public Mood(String user, String mood){
		setLayout(new BorderLayout());
		setBorder(BorderFactory.createLoweredBevelBorder());
		add(new JLabel(user,SwingConstants.CENTER), BorderLayout.NORTH);
		
		JLabel shownMood = new JLabel(mood,SwingConstants.CENTER);
		shownMood.setFont(new Font("Arial",Font.BOLD,40));
		
		JPanel bottom = new JPanel();
		bottom.setLayout(new FlowLayout());
		
		JButton del = new JButton("Unfriend");
		JButton report = new JButton("Report");
		
		bottom.add(del);
		bottom.add(report);
		
		//add(bottom, BorderLayout.SOUTH);
		add(shownMood, BorderLayout.CENTER);
		
		setPreferredSize(new Dimension(180,180));
	}
	
}
